package com.yunji.storage.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yunji.storage.domain.DiscardInfoDO;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @Project: yunji-coffee
 * @Package: com.yunji.storage.dto
 * @Title: DiscardTicketDTO
 * <p>
 * History:
 * Date                     Version     Author          Summary
 * ============================================================
 * 2024-08-24 11:52:34      V1.0        HuaAo       新建类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DiscardTicketDTO {

    @ApiModelProperty("报废单据ID")
    private Long discardId;

    @ApiModelProperty("报废单据单号")
    private String discardCode;

    @ApiModelProperty("发起单位")
    private Long belongId;

    @ApiModelProperty(value = "出库单位", required = true)
    private Long outBelongId;

    @ApiModelProperty("申请人ID")
    private Long applyId;

    @ApiModelProperty("申请人所属单位")
    private Long applyBelongId;

    @ApiModelProperty("申请人姓名")
    private String applyName;

    @ApiModelProperty("申请人所属名称")
    private String applyBelongName;

    @ApiModelProperty("申请时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date applyTime;

    @ApiModelProperty("审核状态")
    private Integer auditStatus;

    @ApiModelProperty("报废状态")
    private Integer discardStatus;

    @ApiModelProperty("驳回原因")
    private String reason;

    @ApiModelProperty("报废备注")
    private String remark;

    @ApiModelProperty(value = "报废照片", required = true)
    private String albumPics;

    @ApiModelProperty("报废详情")
    private List<DiscardInfoDO> infoList;

}